﻿using System;


class NArrays {
  Print(oneDim : array[int]) : void {
    for(mutable i=0; i<oneDim.Length; i++) 
      Console.WriteLine(oneDim[i]);
  }
  
  Print(oneDim : array[2, int]) : void {
    for(mutable i=0; i<oneDim.GetLength(0); i++)
      for(mutable j=0; j<oneDim.GetLength(1); j++)
        Console.WriteLine("{0} ", oneDim[i,j]);
  }
  
  public Arrays() : void {
    def oneDim = array[1,2,4];
    def twoDim = array.[2][[2,3],[7,8]];
    Print(oneDim);
    Print(twoDim);
  }
}
